package com.liuugoqing.creator.builder.cat;

import org.junit.Test;

/**
 * 测试构建模式
 * @Author : liugq
 * @Date : 2022/7/2 11:16
 * @See : 参考类
 * @Since： JDK1.8
 * @Version : 1.0
 */
public class TestCat {
    @Test
    public void test() throws Exception{
        //膜拜
        //Director director = new Director(new MobikeBuilder());
        Director director = new Director(new OfoBuilder());
        Bike mobike = director.construct();
        System.out.println(mobike);
    }
}
